import GlobalPopup from '@/components/global-popup/global-popup'
import Calling from '@/components/global-popup/components/calling'
import Alert from '@/components/global-popup/components/alert'
import Confirm from '@/components/global-popup/components/confirm'
import ConfirmImg from '@/components/global-popup/components/confirm-img.vue'

const install = (Vue) => {
  const usePopups = [
    { name: 'Calling', component: Calling },
    { name: 'Alert', component: Alert },
    { name: 'Confirm', component: Confirm },
    { name: 'ConfirmImg', component: ConfirmImg },
  ]
  Vue.prototype.$popup = new GlobalPopup(usePopups)
}

export default {
  install
}
